package com.cnpc.rightslogan.service.impl;

import com.cnpc.rightslogan.entity.Card;
import com.cnpc.rightslogan.mapper.CardMapper;
import com.cnpc.rightslogan.service.ICardService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class CardServiceImpl implements ICardService {

    @Resource
    private CardMapper CardMapper;

    @Override
    public List<Card> getCardList() {
        return CardMapper.selectAll();
    }
}
